<template>
	<view class='submit-content'>
		<!-- logo -->
		<view class="logo-title">
			<image src="/static/forum/success.png"></image>
			<view class="title">{{successWord}}成功</view>
			<view class="title-detail">后台审核后，将自动展示在首页</view>
		</view>
		<!-- 提交 -->
		<view class="button-content">
			<button class='submit' @click="toLookcircle">查看发布的频道</button>
			<view class="toIndex" @click='toIndex'>返回首页</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				successWord: '发布',
			}
		},
		onLoad(options) {
			if (options.type == 'true') {
				this.successWord = '修改'

			}
			uni.setNavigationBarTitle({
				title: this.successWord + '成功'
			})
		},
		onShow() {
			uni.hideHomeButton({
				complete: () => {
					console.log("成功")
				}
			})
		},
		methods: {
			// 查看发布的频道
			toLookcircle() {
				uni.redirectTo({
					url: '/pages/Component/forum/Program/personal/nav-menu/mycircle?status=2'
				})
			},

			// 返回首页
			toIndex() {
				uni.redirectTo({
					url: '/pages/Component/forum/Program/index/index'
				})
			}

		}
	}
</script>

<style lang="scss">
	page {
		background: #fff;
	}

	.submit-content {
		.logo-title {
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 50rpx;

			image {
				width: 180rpx;
				height: 180rpx;
			}

			.title {
				font-size: 36rpx;
				color: #000;
				margin-top: 20rpx;
			}

			.title-detail {
				font-size: 28rpx;
				color: #979797;
				margin-top: 20rpx;
			}
		}

		.button-content {
			margin-top: 50rpx;
			padding: 20rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			.submit {
				width: 100%;
				height: 75rpx;
				line-height: 75rpx;
				text-align: center;
				font-size: 32rpx;
				color: #fff;
				background: #FB7A26;
				border-radius: 50rpx;
			}

			.toIndex {
				font-size: 32rpx;
				color: #979797;
				margin-top: 30rpx;
			}
		}
	}
</style>
